package org.dreamwork.assistant.tools.network.gui;

/**
 * Created by seth.yang on 2018/5/7
 */
public enum CRCType {
    Sum8 (0, "算术和"),
    NSum8 (1, "算术负和"),
    XOR8 (2, "异或"),
    CRC16 (3, "CRC16")
    ;

    final int code;
    final String chinese;

    CRCType (int code, String chinese) {
        this.code = code;
        this.chinese = chinese;
    }

    @Override
    public String toString () {
        return chinese;
    }
}